import request from '/shop/request';

export default {
	myGroupon: (params) =>
		request({
			url: '/api/activity/groupon/myGroupons',
			method: 'GET',
			params,
		}),
	getGrouponList: (data) =>
		request({
			url: '/api/activity/groupon',
			method: 'POST',
			data,
		}),
	grouponDetail: (id) =>
		request({
			url: '/api/goods/groupon/activity/' + id,
			method: 'GET',
		}),
	signList: (month) =>
		request({
			url: `/api/activity/signin/list?month=${month}`,
			method: 'GET',
		}),
	signAdd: () =>
		request({
			url: '/api/activity/signin/create',
			method: 'POST',
		}),
	replenish: (data) =>
		request({
			url: '/api/activity/signin/replenish',
			method: 'POST',
			data,
		}),
	activity: (id) =>
		request({
			url: '/api/activity/activity/' + id,
			method: 'GET',
		}),
};
